import { formatColumn } from '@/utils/tools.js'

// PE调查
export const subTaskPEDTOColumns = [
  {
    title: '子任务状态',
    width: 120,
    dataIndex: 'subTaskStatus',
    key: 'subTaskStatus',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '发起日期',
    width: 100,
    dataIndex: 'startDate',
    key: 'startDate',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '发起人',
    width: 100,
    dataIndex: 'operator',
    key: 'operator',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: 'ICD描述',
    width: 200,
    dataIndex: 'icd10Des',
    key: 'icd10Des',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '结束日期',
    width: 100,
    dataIndex: 'endDate',
    key: 'endDate',
    customRender: ({ text, record, index }) => formatColumn(text)
  }
]
// 医学调查
export const subTaskCIDTOColumns = [
  {
    title: '子任务状态',
    width: 100,
    dataIndex: 'subTaskStatus',
    key: 'subTaskStatus',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '发起日期',
    width: 100,
    dataIndex: 'startDate',
    key: 'startDate',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '发起人',
    width: 100,
    dataIndex: 'operator',
    key: 'operator',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '调查原因',
    width: 140,
    dataIndex: 'reason',
    key: 'reason',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '理赔退回日期-原因',
    width: 140,
    dataIndex: 'backDateAndReason',
    key: 'backDateAndReason',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: 'NET反馈原因',
    width: 140,
    dataIndex: 'netBackDateAndReason',
    key: 'netBackDateAndReason',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '结束日期',
    width: 100,
    dataIndex: 'endDate',
    key: 'endDate',
    customRender: ({ text, record, index }) => formatColumn(text)
  }
]

// 预授权
export const subTaskPRDTOColumns = [
  {
    title: '子任务状态',
    width: 120,
    dataIndex: 'subTaskStatus',
    key: 'subTaskStatus',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '预授权处理人',
    width: 120,
    dataIndex: 'prOperator',
    key: 'prOperator',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '预授权号',
    width: 120,
    dataIndex: 'preAuthNo',
    key: 'preAuthNo',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '预授权结论',
    dataIndex: 'conclusion',
    key: 'conclusion',
    width: 120,
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '预授权结案日期',
    width: 120,
    dataIndex: 'preEndDate',
    key: 'preEndDate',
    customRender: ({ text, record, index }) => formatColumn(text)
  }
]

// 其他子任务
export const subTaskOtherDTOColumns = [
  {
    title: '子任务状态',
    width: 120,
    dataIndex: 'subTaskStatus',
    key: 'subTaskStatus',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '发起日期',
    width: 120,
    dataIndex: 'startDate',
    key: 'startDate',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '发起人',
    width: 120,
    dataIndex: 'operator',
    key: 'operator',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '结束日期',
    width: 120,
    dataIndex: 'endDate',
    key: 'endDate',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '延迟说明',
    width: 120,
    dataIndex: 'notes',
    key: 'notes',
    customRender: ({ text, record, index }) => formatColumn(text)
  }
]
// 理赔缺失件table
export const claimFileColumns = [
  {
    title: '资料英文名称',
    width: 120,
    dataIndex: 'missingDocNameEN',
    key: 'missingDocNameEN',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '资料中文名称',
    width: 120,
    dataIndex: 'missingDocNameCN',
    key: 'missingDocNameCN',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '资料缺失备注',
    width: 120,
    dataIndex: 'missingDocRemark',
    key: 'missingDocRemark',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '资料缺失时间',
    width: 100,
    dataIndex: 'makeDate',
    key: 'makeDate',
    customRender: ({ text, record, index }) => formatColumn(text)
  },
  {
    title: '当前是否缺件',
    width: 100,
    dataIndex: 'isIncompleteNow',
    key: 'isIncompleteNow'
  },
  {
    title: '登记人员',
    width: 100,
    dataIndex: 'operator',
    key: 'operator',
    customRender: ({ text, record, index }) => formatColumn(text)
  }
]
